
let obj = [{ src: '11111' }, { src: '2222222' }]
let key = 'img'
obj.forEach((item, index) => {
  item[key] = item['src']
  delete item['src']
})
console.log(obj)
